package Chpter4;

class Animal4{
	public Animal4(){
		System.out.println("I am an animal.");
	}
	public Animal4(String name) {
		System.out.println("I am a "+name);
	}
}
class Dog4 extends Animal4{
	public Dog4(){
		
	}
	
}

public class Example05 {
	public static void main(String[] args) {
		Dog4 dog= new Dog4();
		
	}

}
